import Vue from 'vue'
import App from './App'
import {$http} from '@escook/request-miniprogram'

uni.$http=$http

// 配置基准路径
$http.baseUrl='https://www.uinav.com'
	
$http.beforeRequest=function(){
	uni.showLoading({
		title:"加载中..."
	})
}

$http.afterRequest=function(){
	uni.hideLoading()
}

	
uni.$showMsg=function(title="加载失败",duration=1000){
	uni.showToast({
		title,
		duration
	})
}
Vue.config.productionTip = false

App.mpType = 'app'

// 引入store
import store from './store/store.js'
const app = new Vue({
	store,
    ...App
})
app.$mount()
